home *** CD-ROM | disk | FTP | other *** search
- Path: scoop.eco.twg.com!usenet
- From: mike@vishnu.eco.twg.com (This space intentionally left blank)
- Newsgroups: comp.lang.c++,rec.games.programmer,alt.msdos.programmer,comp.programming
- Subject: Re: Young programmers read me.
- Date: 12 Apr 1996 17:14:26 GMT
- Organization: The Wollongong Group
- Message-ID: <4km31i$6q6@scoop.eco.twg.com>
- References: <4icpp9$7hr@barad-dur.nas.com>
- <aidan-0404961557290001@meathook.intac.com> <3165AD94.6F3A@datalytics.com>
- <j-jahnke-0604960016160001@ntcs-ip8.uchicago.edu> <4keejc$lpi@tpd.dsccc.com>
- <Pine.OSF.3.91.960411093444.20958D-100000@bud.cc.swin.edu.au>
- <gfarrow.829193316@rainbow> <4kj3rp$11d@news1.mnsinc.com>
- NNTP-Posting-Host: vishnu.eco.twg.com
-
- In article <4kj3rp$11d@news1.mnsinc.com>, keys@mnsinc.com (Paul Speed) writes:
- >Glenn Farrow (gfarrow@rainbow.rmii.com) wrote:
- >: John Joseph Newbigin <079519@bud.cc.swin.edu.au> writes:
- >
- <snip!>
-
- >void foo(int i, char *list){int t;for(t=0;t<i;t++){printf("#%i",t);
- >printf("%s\n",list[t]);}printf("%i total.\n",t);}
- >
- > Wow! Look at how much space that saved. I could put all my code
- >in just two or three pages. :) I much prefer.
- >
- >/* Function to do nothing
- > * Parms: i = num of items, list = list of items */
- >void foo(int i, char *list)
- >{
- > int t;
- >
- > /* Go through entire list */
- > for(t = 0; t < i; t++)
- > {
- > /* Write the item to stdout */
- > printf("#%i ", t);
- > printf("%s\n", list[t]);
- > }
- >
- > /* Sum it up */
- > printf("%i total.\n", t);
- >}
- >
- > When you waste brain cycles to decipher code that's been crammed
- >together, you lose some cycles you could have been using to do something
- >else.
-
- Rather than waste time and typing with the "my favorite formating style
- rulz!" arguments, why not write a code beautifier that can take any legal
- syntax and format it according to rules in a setup file?
-
- That way you can store the code in "crammed" format to save disk space, and
- convert it to your favorite style to work on it...and everyone can look at
- it in *their* preffered format and the arguments over where the braces go,
- or how amny columns to use (80? 132? 547?) can disappear forever.
-
- Anyone got such a program? Writing it shouldn't be hard if you can define
- the style-definition-file format (user interfaces are always the hardest
- part :^).
-
- -- Mike "class project anyone?" Bartman --
-
- ==============================================================================
- | I didn't really say all the things that I said. You probably didn't read |
- | what you thought you read. Statistics show that this whole thing is more |
- | than likely just a hideous misunderstanding. |
- ==============================================================================
-
- ==============================================================================
- Sex is only a pain in the arse if you miss
- ------------------------------------------------------------------------------
-
-